package com.yzt.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yzt.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 系统菜单表
 * </p>
 *
 * @author Y
 * @since 2020-12-02
 */
@TableName("sys_menu")
@ApiModel(value="Menu对象", description="系统菜单表")
public class Menu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单名称")
    @TableField("menu_text")
    private String menuText;

    @ApiModelProperty(value = "菜单URL")
    @TableField("menu_url")
    private String menuUrl;

    @ApiModelProperty(value = "菜单图标地址")
    @TableField("menu_icon")
    private String menuIcon;

    @ApiModelProperty(value = "菜单排序等级(正序)")
    @TableField("menu_level")
    private Integer menuLevel;

    @TableField("parentMenu_id")
    @ApiModelProperty(value = "父级菜单ID",example = "0")
    private Long parentmenuId;

    public String getMenuText() {
        return menuText;
    }

    public void setMenuText(String menuText) {
        this.menuText = menuText;
    }
    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }
    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }
    public Integer getMenuLevel() {
        return menuLevel;
    }

    public void setMenuLevel(Integer menuLevel) {
        this.menuLevel = menuLevel;
    }
    public Long getParentmenuId() {
        return parentmenuId;
    }

    public void setParentmenuId(Long parentmenuId) {
        this.parentmenuId = parentmenuId;
    }

    @Override
    public String toString() {
        return "Menu{" +
            "menuText=" + menuText +
            ", menuUrl=" + menuUrl +
            ", menuIcon=" + menuIcon +
            ", menuLevel=" + menuLevel +
            ", parentmenuId=" + parentmenuId +
        "}";
    }
}
